get linux arch and copy environment variables into new session