Updated the path variable for files within directories