__line resets file permissions and fails if --state absent results in empty file