Fix basename (for old UNI*es).