Fixed incorrect path, was appending full entity path to full directory
path