Fix enforcement of single instance on Linux