extension dir lookup bug fix