Revert "qt5-static: only touch .gitignore if it exists"

This reverts commit b95045c3e1a03bd83477376ffcc6db3163cb5410.