remove usage of 'which' in generated setup files (#409)