[moblab] Fix issues with the syntax of the script.

There were some missing ] at the end of the if conditions, added

Also break the permissions change out of the if statement, if the
permissions are not correct the UI fails.

TEST=local moblab testing

Change-Id: I72cc4544fd96ba907d4eda0e17465d2e013a39bc
Reviewed-on: https://chromium-review.googlesource.com/1535155
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Matt Mallett <mattmallett@chromium.org>
1 file changed