fix permission error issue in install script from non-root user