HCSVLAB-729 Handle Windows bug with paths with trailing slashes