Update arch.py

Bugfixes in the change directory zone