Use absolute filename in cache.

Absolute filename used in cache so you dont have different entries for
different paths.
Also fixed problem with some videos outputung their location in a
differet output.