[FIX] only pop out script-dir if called directly