updated the code

so that path can be located even on newer version