Added ls and cd
Use perror instead of custom error handler