Added debug output to checkdependencies