make datastore_dir and datastore_max_size configurable env vars, fixes #2