`Error: undeclared identifier: 'task'` still happening
/cc @dom96 if u add me as a contributor i can add proper labels

## 1st case

when running `nimble develop -y` twice in a row from nimble source repo

```
prompt:lhmbp $nim_D/nimble master 8.237 ERROR:1 $ ./nimble develop -y
   Warning: Using env var NIM_LIB_PREFIX: /Users/timothee/git_clone//nim//Nim/
   Warning: This package's binaries will not be compiled nor symlinked for development.
  Verifying dependencies for nimble@#head
      Info: Dependency on compiler@#head already satisfied
   Warning: Package 'compiler' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'compiler', but file 'nimsuggest.nim' is in a directory named 'nimsuggest' instead. This will be an error in the future.
      Hint: If 'nimsuggest' contains source files for building 'compiler', rename it to 'compiler'. Otherwise, prevent its installation by adding `skipDirs = @["nimsuggest"]` to the .nimble file.
  Verifying dependencies for compiler@#head
   Success: nimble linked successfully to '/Users/timothee/git_clone/nim/nimble'.
prompt:lhmbp $nim_D/nimble master 3.244 $ ./nimble develop -y
   Warning: Using env var NIM_LIB_PREFIX: /Users/timothee/git_clone//nim//Nim/
   Warning: This package's binaries will not be compiled nor symlinked for development.
  Verifying dependencies for nimble@#head
      Info: Dependency on compiler@#head already satisfied
   Warning: Package 'compiler' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'compiler', but file 'nimsuggest.nim' is in a directory named 'nimsuggest' instead. This will be an error in the future.
      Hint: If 'nimsuggest' contains source files for building 'compiler', rename it to 'compiler'. Otherwise, prevent its installation by adding `skipDirs = @["nimsuggest"]` to the .nimble file.
  Verifying dependencies for compiler@#head
    Prompt: nimble@#head already exists. Overwrite? -> [forced yes]
       Tip: 10 messages have been suppressed, use --verbose to show them.
     Error: /Users/timothee/git_clone/nim/nimble/src/nimble.nim(1118) nimble
        ... /Users/timothee/git_clone/nim/nimble/src/nimble.nim(1089) doAction
        ... /Users/timothee/git_clone/nim/nimble/src/nimble.nim(963) develop
        ... /Users/timothee/git_clone/nim/nimble/src/nimble.nim(931) developFromDir
        ... /Users/timothee/git_clone/nim/nimble/src/nimble.nim(285) removePkgDir
        ... /Users/timothee/git_clone/nim/nimble/src/nimblepkg/packageparser.nim(465) toFullInfo
        ... /Users/timothee/git_clone/nim/nimble/src/nimblepkg/packageparser.nim(398) getPkgInfoFromFile
        ... /Users/timothee/git_clone/nim/nimble/src/nimblepkg/packageparser.nim(359) readPackageInfo
        ... Could not read package info file in /Users/timothee/.nimble/pkgs/nimble-0.9.0/nimble.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     /Users/timothee/.nimble/pkgs/nimble-0.9.0/nimble.nimble(33, 1) Error: undeclared identifier: 'task'.

```

every even number it succeeds
every odd number it fails

## 2nd case
from nim repo:
```
./koch nimble --latest
./bin/nimble install nimble
Downloading https://github.com/nim-lang/nimble using git
   Warning: Using env var NIM_LIB_PREFIX: /Users/timothee/git_clone//nim//Nim/
  Verifying dependencies for nimble@0.9.0
      Info: Dependency on compiler@#head already satisfied
   Warning: Package 'compiler' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'compiler', but file 'nimsuggest.nim' is in a directory named 'nimsuggest' instead. This will be an error in the future.
      Hint: If 'nimsuggest' contains source files for building 'compiler', rename it to 'compiler'. Otherwise, prevent its installation by adding `skipDirs = @["nimsuggest"]` to the .nimble file.
  Verifying dependencies for compiler@#head
 Installing nimble@0.9.0
   Building nimble/nimble using c backend
    Prompt: nimble@0.9.0 already exists. Overwrite? [y/N]
    Answer: y
       Tip: 14 messages have been suppressed, use --verbose to show them.
     Error: Could not read package info file in /Users/timothee/.nimble/pkgs/nimble-0.9.0/nimble.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     /Users/timothee/.nimble/pkgs/nimble-0.9.0/nimble.nimble(33, 1) Error: undeclared identifier: 'task'.
```

## related
* https://github.com/nim-lang/nimble/issues/562 /cc @genotrance  @dom96 
