fixed portability issues with c9.io