Allow to use * pattern in directory names - closes #241