script-plugin: fix root check for storage path automatic read