Fixes #3087 -- Use `fs.*Sync` for CLI compilation

 * Make `compilePath` synchronous
 * Remove unused variable
Merge pull request #3234 from marchaefner/issue3087

Fixes #3087 -- Use `fs.*Sync` for CLI compilation