Move iOS helpers to common.rb
Use one run.rb for all platforms

Fix #183