Replace execfile() with exec()