Added support for detection of script dependencies