macro to find a dependency consistently (#240)