added function to change current terminal dir to foremost finder window