Handle multiple script import positionings correctly