Generalized slash notation to detect OS and use right slash