added -d option for seafile data dir