fix file and dir name collision and location host