Method added for checking root access + .gitignore