Fix mkelf.py and other scripts