Fixes race condition in main-compiled config that made PhantomJS to fail - real fix to #1