Directory backed persistent queue in Scala