Fix: nested imports should use the imported file path instead of the initial opts.path

When nested imports are encountered, the original opts.path is used to calculate their imports instead of using the currently imported file dirname.