Fixed error with how input file path was being read