Add debug output to dependency script