Completely reworked 'require' resolve. #CLJ-63 Fixed