while true loop in Bash and break on problem