Only evaluate command if a command name is present

Fixes the edge case line == "."