envsetup: Fix remote functions to deal with symlinks

merged CM Commit http://review.cyanogenmod.org/#/c/53961

Change-Id: Idf226d9cb79664af597eeca5f1d005eb6518eff0
Allow defining multiple GCC O Levels 2/2

Change-Id: Idac74b61ece0f9fdc35b29188ec4c5191ebfcae2
Rework if statements for GCC Level. [1/2]

Reworked the if statements to give only 2 options, either Os or O3. If neither one of them is selected as an option, it will select the default Optimization Level which is O2.

PS2: Update commit message
PS3: Rebase and ready for merge

Change-Id: I64d5787bc86242fd613eb3931cd9bd46d7f17c49
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
Merge remote-tracking branch 'PAC-man/cm-10.2' into cm-10.2