Fixed jake build if leaflet copy is not a git repository

Fixes building leaflet obtained via npm install or downloaded as tar.gz