small fix for rmdir and mkdir