cork_path_dirname doesn't work on root directory

The cork_path_dirname function isn't returning the right results when applied to the root directory (`"/"`) or its immediate subdirectories (e.g., `"/usr"`).  You end up getting an empty path (`""`), when you should get the root directory (`"/"`).  (Note that it's customary to treat the root directory specially: `dirname("/") == "/"`.)