Fix problem when typing "cd" only