fixes for is_link and rmdir