Expand command symlink

Also remove unrequired double [.
Also quote command name so that any errors will not result in an invalid
condition.