Simplify the dependencies check in target#new