Fixed bug where rm -f still printed errors