Fix wrong trailing slash on windows when using dev