Make BeanManager::registerBeans() method Windows compliant