log err and return if modules folder is empty