Make sure that the destination path exists before compiling