Return the basename of a path in a platform-agnostic way
platformDirname - for the dirname counterpart
Return the basename of a path in a platform-agnostic way