check SOURCE_DIR before set generate_messages_py

workaround for #51, @garaemon please double check if this is ok with jsk_recognition.