Fixed fallback option name
Switched from (‘child_process’).spawn to (‘child_process’).exec as it handles output buffering more reliably.  Handled case in findJSMainFile where main file is defined as a String rather than Array.