pathutil: Add pathutil package which implements the TrimExt function.
pathutil: Add missing ']' character.