tidy the tidy script, cleanup .bak files on check
Merge pull request #9 from asdil12/tidy_cleanup

tidy the tidy script, cleanup .bak files on check