redot: removed perl4isms and fixed shebang