fixes an issue with long directory / file names

When a directory contains more than 154 characters or a file name
contains more than 99 characters, there was a bug forgetting to
include the container dir in the paths. As such, files and/or
directories past this point would not have the correct path.