When filename with full path is passed as command line parameter, output filename is incorrect.
When filename with full path is passed as command line parameter, output filename is incorrect.