Fixed some file permissions for install logic.