build: fixed running build from external directory
Tools: skip check_submodules.sh when NUTTX_SRC is set

this avoids using submodules when a specific NuttX tree is specified