Downgrade the use of flat_map to map.flatten instead

flat_map requires 1.9.3. However, Centos 6.5 (the latest version of Centos) only ships with 1.8.7. This is the only change necessary for stash-client to work on 1.8.7.