Removes old main, allows out of dir build