Adding cleanname. Updating dirname and basename with manpage, and making them consistent with cleanname.