Prepare for handling pkg state with files. So it requires having the path defined before declaring targets. In addition, it cleans up the old git-download target.
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>