properly chmod script