use node_modules path if provided
better path logic