setup env vars properly for rails3/4 assets:precompile