fix permissions with fml files to be user:user, and set umask(0)