Update travis build scripts to build for stage or dist