avoid constant path normalization in getPath
remove unused (by us) second parameter from PATH.basename
optimize PATH.basename
do not normalize in getPath, since our paths elements are already ok