Refactor dist script to support integration tests