Added check to avoid loading local shell configs more than once