Remove useless main functions and fix nohup on Macs
Remove a couple of warnings
Merge pull request #320 from Arcterus/nohup-fix

Couple of minor fixes
realpath implementation
relpath implementation