set compile directory to project root on find-file-hook