dry up the composer binary download code
Merge pull request #11 from andyshinn/refactor_download_method

DRY up the composer binary download code a bit