Updated deployment logic

... to account for both deployment scenarios (iterative and release).