create app dir idempotently
replace extglobs that don't work on stock lucid64