i take it by a shebang line you mean you are adding a file to the top of the file, like when you use auto_prepend_file in php.ini
think i have the same issue - i use my laptop for production and a remote host for development - and they obviously use different variables, mysql logins etc
so what i do in my vars file is this
switch($_SERVER['SERVER_NAME']) {
case "localhost" :
//do local stuff here
break;
case "www.yourdomain.co.uk" :
//do remote stuff here
break;
}
maybe you could use the same thing so that your shebang line is only shown on one server, not the other...