Fix 'not a hash reference' errors when 'path_map' not set.
Remove debug statement.
perltidy
Restore shebang line.