optimise add_depends for simple pagespecs