Fixed bug 78:  flush-caches causes permission error if run by root
Fixed bug 78:  flush-caches causes permission error if run by root

dbooth-boston/rdf-pipeline,dbooth-boston/rdf-pipeline,dbooth-boston/rdf-pipeline,dbooth-boston/rdf-pipeline