modified dll registration code to not use hardcoded paths