For 'geminio' command to work, both source and destination paths need to be file paths
It breaks if destination path is a directory
It is fairly common to give just the path to destination directory to 'cp' command
So to fix this issue, I'm first checking if the destination is a directory path. If yes, I'm copying the file name (from source path) and appending it to the destination path