keep refresh in the fg because curl is in bg and disowned
updated logic to only run if curl is not running
Merge pull request #391 from joshsamuelson/refresh

keep refresh in the fg because curl is in bg and disowned