Return the directory part of the string s, that is, everything before the final slash in the string. This is similar to the GNU dirname command.