cd recognizes - argument

'cd -' returns to the previous directory.

This is not valid if no directory change has happened before.
Test for cd -

(minor fixup by sitaram)