Corrected analysis to find correct path for files