Change directory and and add cleanup to build script