Implement rmdir

Allow to remove the directory, too.

Signed-off-by: Petr Tesarik <petr@tesarici.cz>