Make directiveSelector method to work with selectors like 'modalview', 'popover', 'tabstrip'