making sure that build yui modules are not taking in consideration as relative files to a build.json from source

this fixes an infinite loop when having a build.json at the top level with some js files under build folder, the issued surfaced after trying the fix in locator to support build.json at the top level from https://github.com/yahoo/locator/pull/13