fix main task bootstrap

The use-goog-in-tasks option is experimental and never should have been made required this way.
The bug the original change introduced led to a "goog is not defined" error being thrown on every run when goog was not allowed via the flag.
fix `project_dirname` lookup for cross-platform compatibility
fix child_process.spawn() for Windows