Check for existing instance also in 'sh' command