Remove trailing backslash from rtp on Windows