Replace '/bin/rm' calls with rmdir_recursive() function.