Fixes script depency handling.