Cache proj variables in the correct order

I switched around the order in which the subdirs are added.
We can't use a ${proj}_{SOURCE|BINARY}_DIR until the directory
is added, so just define those up front.