FIX: use system/script/parent/path to tackle #366