[FIX] validate presence of input file before starting executable

small fix which makes sure that the swath windows file exists before loading more data
since you are already touching this file, could you make those `if`s compliant to the coding convention (either `{}` or put it on a single line)