[NIFI-2813] Fix for invalid M2_HOME directory
[NIFI-2813] Fix for invalid M2_HOME directory

This closes #1049

Signed-off-by: Andre F de Miranda <cf4a6674b73e136c04443f34b504d3d606a1c0cb@users.noreply.github.com>

m-hogue/nifi,ijokarumawak/nifi,josephxsxn/nifi,joetrite/nifi,dlukyanov/nifi,alopresto/nifi,pvillard31/nifi,jtstorck/nifi,tequalsme/nifi,mans2singh/nifi,Xsixteen/nifi,Wesley-Lawrence/nifi,jfrazee/nifi,jskora/nifi,mattyb149/nifi,thesolson/nifi,InspurUSA/nifi,WilliamNouet/nifi,michalklempa/nifi,jjmeyer0/nifi,aperepel/nifi,ijokarumawak/nifi,speddy93/nifi,Wesley-Lawrence/nifi,Xsixteen/nifi,apsaltis/nifi,YolandaMDavis/nifi,peter-gergely-horvath/nifi,joewitt/incubator-nifi,michalklempa/nifi,WilliamNouet/nifi,joewitt/incubator-nifi,jjmeyer0/nifi,mcgilman/nifi,PuspenduBanerjee/nifi,alopresto/nifi,zhengsg/nifi,patricker/nifi,Xsixteen/nifi,jskora/nifi,tequalsme/nifi,mattyb149/nifi,josephxsxn/nifi,m-hogue/nifi,ShellyLC/nifi,thesolson/nifi,m-hogue/nifi,bbende/nifi,trixpan/nifi,alopresto/nifi,qfdk/nifi,speddy93/nifi,jskora/nifi,qfdk/nifi,bbende/nifi,joetrite/nifi,PuspenduBanerjee/nifi,trixpan/nifi,patricker/nifi,qfdk/nifi,jjmeyer0/nifi,apsaltis/nifi,aperepel/nifi,pvillard31/nifi,WilliamNouet/ApacheNiFi,michalklempa/nifi,patricker/nifi,InspurUSA/nifi,zhengsg/nifi,YolandaMDavis/nifi,jskora/nifi,Xsixteen/nifi,aperepel/nifi,m-hogue/nifi,WilliamNouet/ApacheNiFi,jskora/nifi,bbende/nifi,jtstorck/nifi,qfdk/nifi,qfdk/nifi,WilliamNouet/nifi,peter-gergely-horvath/nifi,WilliamNouet/nifi,WilliamNouet/nifi,Xsixteen/nifi,InspurUSA/nifi,trixpan/nifi,mattyb149/nifi,thesolson/nifi,speddy93/nifi,YolandaMDavis/nifi,ijokarumawak/nifi,patricker/nifi,Wesley-Lawrence/nifi,zhengsg/nifi,jtstorck/nifi,trixpan/nifi,PuspenduBanerjee/nifi,mattyb149/nifi,michalklempa/nifi,josephxsxn/nifi,dlukyanov/nifi,thesolson/nifi,tequalsme/nifi,mans2singh/nifi,pvillard31/nifi,mans2singh/nifi,YolandaMDavis/nifi,joetrite/nifi,pvillard31/nifi,zhengsg/nifi,aperepel/nifi,jfrazee/nifi,MikeThomsen/nifi,jfrazee/nifi,dlukyanov/nifi,mattyb149/nifi,mans2singh/nifi,mattyb149/nifi,tequalsme/nifi,WilliamNouet/ApacheNiFi,MikeThomsen/nifi,alopresto/nifi,speddy93/nifi,mcgilman/nifi,joewitt/incubator-nifi,YolandaMDavis/nifi,mcgilman/nifi,thesolson/nifi,Wesley-Lawrence/nifi,trixpan/nifi,alopresto/nifi,joewitt/incubator-nifi,michalklempa/nifi,mcgilman/nifi,josephxsxn/nifi,jskora/nifi,PuspenduBanerjee/nifi,jtstorck/nifi,apsaltis/nifi,joewitt/incubator-nifi,tijoparacka/nifi,patricker/nifi,thesolson/nifi,jfrazee/nifi,apsaltis/nifi,peter-gergely-horvath/nifi,dlukyanov/nifi,tijoparacka/nifi,tijoparacka/nifi,ijokarumawak/nifi,ShellyLC/nifi,ShellyLC/nifi,josephxsxn/nifi,pvillard31/nifi,peter-gergely-horvath/nifi,josephxsxn/nifi,PuspenduBanerjee/nifi,speddy93/nifi,jjmeyer0/nifi,ijokarumawak/nifi,YolandaMDavis/nifi,qfdk/nifi,MikeThomsen/nifi,PuspenduBanerjee/nifi,mcgilman/nifi,MikeThomsen/nifi,pvillard31/nifi,jfrazee/nifi,peter-gergely-horvath/nifi,apsaltis/nifi,MikeThomsen/nifi,joetrite/nifi,mans2singh/nifi,ShellyLC/nifi,zhengsg/nifi,bbende/nifi,jfrazee/nifi,tijoparacka/nifi,pvillard31/nifi,tijoparacka/nifi,joetrite/nifi,m-hogue/nifi,dlukyanov/nifi,Xsixteen/nifi,jjmeyer0/nifi,mattyb149/nifi,WilliamNouet/ApacheNiFi,ijokarumawak/nifi,alopresto/nifi,speddy93/nifi,WilliamNouet/ApacheNiFi,m-hogue/nifi,michalklempa/nifi,Wesley-Lawrence/nifi,jjmeyer0/nifi,tequalsme/nifi,tijoparacka/nifi,mcgilman/nifi,peter-gergely-horvath/nifi,MikeThomsen/nifi,joetrite/nifi,bbende/nifi,InspurUSA/nifi,pvillard31/nifi,aperepel/nifi,tequalsme/nifi,apsaltis/nifi,ShellyLC/nifi,trixpan/nifi,InspurUSA/nifi,jfrazee/nifi,alopresto/nifi,jtstorck/nifi,mcgilman/nifi,jtstorck/nifi,zhengsg/nifi,YolandaMDavis/nifi,jfrazee/nifi,ShellyLC/nifi,aperepel/nifi,WilliamNouet/ApacheNiFi,MikeThomsen/nifi,jtstorck/nifi,m-hogue/nifi,InspurUSA/nifi,Wesley-Lawrence/nifi,WilliamNouet/nifi,patricker/nifi,bbende/nifi,mans2singh/nifi,dlukyanov/nifi,joewitt/incubator-nifi,patricker/nifi