Fixed file location issues and permissions