Handle ct_run exit codes in R15B02 and later

Since R15B02, ct_run returns a non-zero exit code when some tests
failed or were auto-skipped. (See ticket OTP-9865.)

This fix makes it so a non-0 code doesn't cause an instant failure, but
still prompts for log verification before doing so. Given the behaviour
was acceptable for pre-R15B02, it should be valid with it with
post-R15B02.

The fix should also be backwards compatible.
Add rebar-deps env to port compiler SharedEnv

REBAR_DEPS_DIR is often needed when a nif needs to be linked with a raw
dependency.
Merge pull request #85 from ratelle/rebar-deps-dir-in-port-compiler

Add rebar-deps env to port compiler SharedEnv
Merge branch 'master' of git://github.com/ferd/rebar into ferd-master