Formula with test for libsecret-0.18

New pull request due to messing up the previous one. Added test to formula as requested.
I mean tell the developers of `libsecret` that these `inreplace` changes are required on OSX and perhaps they might want to fix their makefiles so they aren't.