Only check for the project name if it is explicitly set or if the new command was invoked

Signed-off-by: Henrique Vicente <henriquevicente@gmail.com>
Source formatting (typo)

Signed-off-by: Henrique Vicente <henriquevicente@gmail.com>