This is discussed in an older thread here:
Are you loading your game within Steam or outside of Steam when this is detected?