mod_base: Remove TODO from controller_api
core: Fix startup script distributed detection

$NODENAME was not defined on a place where it should be. This fixes a
bug where zotonic refused to start when there was any other Erlang
process running with the '-name- parameter.