Reimplement functions related to import dir.