fix puma/puma#300: Gemfile not refreshed between deploys
check pid instead of state file
Merge branch 'refresh_gemfile'