.functions: Make `mkd` `cd` into the last directory in the list

…rather than the first.

Closes #447 and #450.