Fix pathname not responding to #chomp