The 'dirname' command only works if the path is a single word.