Replace dir with filepath in usage_xxx_mnesia