fixing shebang and attribs