# inspired by an autoconf generated configure script. s%/[^/][^/]*$%% s%[\/][^\/][^\/]*$%% s,.*[^\/],,