Implement Workspace.isValidDir

A basic implementation that checks whether all components can be loaded
and whether there is at least one component present.