Fixed rm for directories