Automatically get effective interface name

Some people don't know to modify the script.