fix regression caused by #606

If WHISPER_DIR is specified w/o a trailing slash all metrics will contain a
leading period. This patch makes sure any leading period is removed from the
metric name.

See #606 for more details.
upgrade fix as suggested by @brutasse
Merge pull request #662 from ImmobilienScout24/fix/regression/build_index

fix regression caused by #606