fixed code signing issue where distribute needed to be run twice