correct conditional for changing the path with queries

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>