Update build environment
Move the hook into DownloadOsmTask to reduce duplicated code