fix(require): fix and simplify the required controller attachment to fallback to the directive's scope when the directive's controller isn't attached to its scope