Fixes #2244: avoid constantly changing os.release_name
Add a test for ensuring that release_name is set to lsbdistcodename on debian-based distros