41284: Fix NULL dereference in cd.
This happened in sh compatiblity mode if HOME was not set and cd was used with no argument.
Authored by: Peter Stephenson 2017-06-13
Parent: [d5c22d]
Child: [4d007e]