added script to set correct file and directory permissions