change the way to have the basename of a file