changed to methods in workspace_utils

Two very minor changes to the `workspace_utils.dart` file.
- prefer terse methods (using the ternary operator when it works)
- `getETag()` gets much shorter, and can use the function shorthand sytax (`=>`)

@albualexandru for review