Add dir validation

A missing directory should warn the user and not just silently put
things into an undefined location.