Added spec for handling Pathname objects.
Ensure directory in load path is a string.