check write permission during the install process