create directory on save if needed