Removed parens around (testpath) in two if statements for improved readability.