Checks whether script dot-sourced or not.