Fixing bug with wrong variable name

Fixing wrong variable name, should be "dir_part" and not "folder".