simpler fix, just use the basename and be done with it