shorter version of dirname to look for (BugzID:978)