moved splittedFileName generation under file presence check

Fixed a bug when data-file was not provided.