Update commands.py

updates fix that will cause an error if empty file

https://github.com/botherder/viper/issues/50