Append a slash to the end in a changeDir operation if it is not given.