Check if params.file is defined before starting the peerflix process