added global option to fixRegerencePath RegExp

Fixing References are messed up on (d.ts) #40