commands.py: typos

Thanks to niku for the patch.
scope.sh: typo

Thanks to niku for the patch.
data/scope.sh: fix extension matching on uppercase extension

Thanks to niku for the patch.