chdir accepts block, it returns the change back at the end of the block