Added sha bang and improved regex