Fixed setting permissions to a file that does not exist