resolve compiler path using require algorithm