Don't allow creating entries with empty basenames

Fixes also issues when cloning a VFS to an in-memory VFS would
create an FS with a / directory which contained an entry pointing
to itself.