Fix NoSuchFileException when using the compile phase, fixes #564

7 files changed