Prepend path to dependency info files with sed

The old way was error prone due to it's use of a fixed path file and
confusing.

closes #775