Broken ATM dispenses $37,000 to homeless man