actions: validate the workspace dir in loadProject

Call `Workspace.isValidDir` from `actions.loadProject` to ensure the
working directory is a valid workspace.