Fixed permission issue with file module