configure: fix all except one warning produced by shellcheck

thanks to @bska for pointing this tool out!
Merge pull request #105 from bska/105_cmake

Synchronise build system with opm-core