check for file existance before setting permissions