Added loading libpath from registry
Solution reworked