Change directory temporarily for a limited scope
