Strip off the subdir part of the path