Fixed 'break' in if statements because they where not correct, and using what I hope is a multiplatform shebang.