Change input parsing for cd

Changed the input parsing to work with changing directories
code in commands.cpp