Fixed mistake in script_path calculation