Fix bug with root mounted as non-artifact in script plugin. Closes #756 and #749 See merge request !941