remove trailing slash from data dir on windows

fixes #2081

@karlitschek @Raydiation @bartv2 @icewind1991  THX