Adding -f to rm since dir doesn't always exist.