Fixed missing ) in file exists checks