fixed a cdmod issue with file permissions