use the old notdir function for better performance

let's wait for fish to add some basic string manipulation functions