Added a custom rmdir function and support for boolian yes/no