Update local-shim.coffee

check whether the dependency was already found before continuing with window.require