Added single-instance protection on unix