add function to cd into last modified dir