Set cwd for post_compile hook