deploy: major refactor of push script