Added make uninstall
Moved pipes variable to function scope