Fix the case when digested files are in a subdirectory

@luis-almeida