Add the cd stuff back in.

it turns out it wasn't pointless. it was needed because the build script assumes
you are in its directory.