Trim last trailing slash character from the path