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.