move require-and-resolve to util
avoid AOT in uberjar as well