Add more '/' checks to rm