Fix permission problems in dist-hook and remove touch calls which are breaking distcheck.