Fix bug: directory arg parsed incorrectly. lcd not called on quit