myutils: at_dir should also change directory back on exception