Ensure the dir exists.