bug fix, more explict path replace for import hook