Remove unnecessary lines of code
Repairs version detection
Changing Permission for files