Polish tidy script

* do not error when called from somewhere else than expected
* error out when there is no perltidy
* put wildcards into apostrophes so they don't catch random junk
* little optimisation - get rid of xarags