Rename "PersistentDir" option to "PersistenceDir" and streamline options in example agent