Prohibit the use of a sharedir configuration that is not supported
Add tests for check on unusable sharedirs