Ensure build_and_upload_locally() performs source directory checks.