minor fix for rm command