Make sure DEF_DIR exists.