resolve paths for require calls