Handle null arguments to cd