Adding settings saving for selected directory

Refs #7681