add gemfile and use more cross platform commands