Added guard for sourcing of npm completion