Code Cleanup

- Removed unused strings.
Fix build with musl libc

GLOB_BRACE and GLOB_TILDE is not defined in posix and thus not implemented
in musl libc.

We fix this by defining it to 0 if its undefined.

fixes issue #1503
Bug #1503

- #1503 build failure with musl libc due to undefined GLOB_BRACE and GLOB_TILDE
        (thanks to Natanael Copa)
iBug #1511

- #1511 sync init crashes if client certification file is empty or invalid
        (thanks to Marton Suranyi).

Signed-off-by: Paul Beckingham <paul@beckingham.net>