building script refactored allowing package building tests before signing