replace backslash with slash for path on windows platform, otherwise it will obtain unexpected depth value.