Avoid downloading VCS data when building release

Calling "composer install --prefer-dist" will speed up operations,
since we don't download .git folders and after delete them.
Merge pull request #786 from mlocati/composer-prefer-dist

Avoid downloading VCS data when building release