Better way to include core.sh, more arguments for scramdir.sh