build: fix relative path resolving by basis.require