fix crash on OS X el capitan when using command line arguments