Adds a recursive rmdir function for `pac install`