tools: fix file extension check in cleanup-buildenv-build-dir.py.