Fix some pylint warnings
Fix the working directory for the second git command (execute it in git repository, like the first command)