small refactoring on rmdir() and unlink()
adding rmdir() and unlink() to the methods that will patch fs