Small cleanups and added require(share).scriptsDir