rewrite double_pipe
remove log messages
fix return value when dir already in PATH