Adjust to work in npm environment.