Save settings only if basedir is set in data