Auto set PATH in common for root

Fixes #265