: Uses chomp to be DOS+NT safe.
That's likely to be LESS safe. chomp() only chops $/ off the end, so if
they've changed $/, tough luck. Whereas `pwd` may already have chopped
the return out because of non-binmode processing, so chop() may work
fine regardless.
Larry