Fixed spacing in context/installer/media/templates/upload folder

Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I9761be9fa47adc3554852a97b19792b4648466ad