Refer to checkout-deps-paths as a var instead of a raw fn.

Might fix #1286.