src/script.c: correct error handling in parse_dependency