Typo in the PATH fallback

The fallback for PATH was [], but that leads to "'list' object has no attribute 'split'"

This corrects that fallback to ''

Includes a unit test to prevent regression.