fixed rm hanging on non existing file