Virtual directories are absent unless they have a physical path.

Fixes bug where we attepted to set physical path on regular paths. Now we
create the virtual directory before setting its other properties.