Minor tweaks

Totally useless improvements that make sense for perfectionists only.
Mostly stuff like readability and better POSIX-compatibility no one really cares about. And some more quotes for extra safety.