tidy settings.rb a little

Make the code a bit more concise and expressive

Change-Id: I7d1d747e1a6766cd555a707fd9f6e6dfd54dc47d