contrib/reindent.pl: add fix for older Emacsen without --chdir