fix moar basename crap