Remove last backslash from npm path