Fix cross-directory problems

Should be working with videos and xmls from any folder now.