Fix constraint nill check
Add nil check to depres
Add check for invalid flags for a package
Remove files that are previous in the old version only