Convert node module dir path for require