Factor out method build_and_upload_locally for use by dx-build-app.
Ensure build_and_upload_locally() performs source directory checks.
Changelog update for v0.41.2