added chmod in case the compile is not writable