Remove trailing slash (possible Windows fix)