scaffold create dir if not exist and wrong check for path on noble bug