src: basename: implemented my own basename()