fix runScript path constructor