moved splittedFileName generation under file presence check
merge conflicts resolved.
Merge pull request #3 from kashif-umair/hotfix/fixed_file_name_split_bug

moved splittedFileName generation under file presence check
Merge pull request #4 from kashif-umair/hotfix/fixed_file_name_split_bug

merge conflicts resolved.
merge conflict resolved