Remove unnecessary logic related to scriptFile path added by previous commit