Fix path_lookup() when the program to invoke contains a slash.