setup env vars properly for rails3/4 assets:precompile
fix shell helper bugs
use new env dir format
remove unnecessary parameter
need to setup bash shell env when passing env during run