cd: fixed issue with popping the stack not storing the lastdir, as well as catching condition where lastdir file does not yet exist