Fixes hook-bacon.py with --onefile mode.