Check if another program instance is already opened