Fix env for those depends on other formulae set

Formula name in other formulae set has "/" which could break paths in env.