qt5-static: only touch .gitignore if it exists