fixed for posix compliance so it works cross os
tweaks for more robustness to vars
Merge pull request #1 from fuag15/feature/config_loader

fixed for posix compliance so it works cross os