Lets extract out the logic of the checking for WEB-INF outside of the forloop for source folders since they don't seem to be related.