nohup implementation

Fix for the bug #302
It should work on Mac, but I have never tested it there.