fix bug. miss_rate now can process dir name without a slash