Use "/usr/bin/env perl" as shebang and fixed bugs when trying to print a field which does not exist