basename, dirname, readlink and more