fix logpath.js to work with any smoke-db-prefix #177