Enhance dependency resolving: support any scripts