checked for :path and :local. Fixes #971.