Removed double implementation of removedir