rmdir of non-empty dir should produce an error

Fix for issue #3