Handle non-existent lsb-release file

This file is not present on Fedora systems.
Fix python syntax errors

You cannot define a function called exec. This patch renames it to Exec.