correct quoting of cache- and resource-directory