[BUGFIX] Pass path instead of object to fileExistsInFolder