Fixed code that searches for run files in input