Huge optimize in User::parseChangeDir

instead of implimenting all the code of moving through path, which is not good looking and slower
I use strchr and strrchr which make it much better and more readable

also made that if there are two slashes one after another, it ignores the second one

tested and works!