set AES-NI correctly when unset in TUI

Also fix writing to /etc/profile

Change-Id: If0c424136b5abe794c720d4dc33cda6c72b59b1d
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=982445
Signed-off-by: hadong <hadong0720@gmail.com>