BZ-1007825: Added option to save project before building and deploying.
(cherry-picked from b2912ec)