refactored build cmd selection code

made code which selects build command when the user presses <Return>
more intelligent. it bases now on dictionary 's:buildCmd' and
list 's:buildCmdIndex' which together provide a more or less "object
oriented" approach