Corrected bug: The output of the lsof wasn't being compared correctly with the readdir output (because it doesn't return the folder part)