Little cleanup, better failing.

Fail right away if DIR doesn't exist.