- Switch to RbConfig to avoid deprecation warnings
- Fixed all shadowed and unused variables so open4 is -w safe
merging zenspider's work