cleaning nodePath from the command if it's not given and printing the compiler return if there's an error in the proccess