Remove hardcoded base dir for data dir

Replace hardcoded path `tmp/metric_fu` with `@base_directory` for data directory.