cd command working properly