Check and correct file permissions
