Reorder the way cd chdir to avoid a bug.

Before I was not properly resetting to TOPDIR
before setting up symlinks for the second arch.

(cherry picked from commit 7ce664f44910723d2cc6f7adb4b7a35e53a601c7)