curl properly building to build dir