Handle Pathname objects in

Sometimes the $LOAD_PATH array contains Pathname objects. In this case, prefix may contain a Pathname instead of a string and prefix.chomp will fail (chomp isn't a method on Pathname). Simply forcing a to_s on the prefix fixes this.