Fix #29: Tempfile permissions are not the same as the user and group specified