make one-liners more robust

Signed-off-by: Jan Keromnes <janx@linux.com>