Changed file permissions
Use gnu sed instead of mac sed