env.local is not just 'local'
Added p_in_list utility function
A couple of fixes for source update functions