Is this cd <path> affecting the users path? if yes, then we should find another solution or restoring the path afterwork.