path-separator is not a function