Update compiler.js

Updated to support execSync rather than exec-sync (which doesn't work on windows)