hooked up single instance signalling for linux and minor fixes