add l that can be used arount e.g. path to make sure the output is a list and escape ~ in path_escape

Signed-off-by: Mattias Andrée <maandree@operamail.com>