Fix getbasename for new way of handling paths