sfProjectOptimizeTask: Make generated file with relative path, fix permissions