add input file existence check in squash.rb