made function build default server command

this is to make it easier to override this functionality (especially for
docker integration)