Fixed build breakage caused by string append syntax failure.

Review: https://reviews.apache.org/r/23172
Handle file:// in fetcher.

Handle file:// in the fetcher, and also handle case when localhost is used.

Review: https://reviews.apache.org/r/21734