fixed bug with local search_replace, now it replaces the shebang line