Fix bug by changing directory back to build dir