better redundant-path-var remover