Check whether input filename exists