Modified logic to run either install or deploy

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>