Added useLocalFallback option
Switched from child_process spawn exec
Exec handles output buffering more reliably.

Handled case in findJSMainFile where main file is defined as a String rather than Array.