Update main.c

The changes has been done to get the directory path of the changed file.
Merge pull request #3 from PoojaShukla/patch-3

Update main.c