configure: fix pep8 issues

Fixes some code style issues in configure script (see Python's PEP 8 style guide).