force getting variables from same environment as ls

fixes #1017
not sure why it was picking up system-defined stuff otherwise