made sure cleaning the dbpath works well on osx #983