Change rm -r to rm -f