Update require path logic.