Allow trailing slashes in JAVA_HOME matching
Allow trailing slashes in JAVA_HOME matching

Summary: Some users have trailing slashes in their `JAVA_HOME`s. Update our regexes to handle that.

Reviewed By: rajyengi

shipit-source-id: ebee8d78b5

Addepar/buck,Addepar/buck,facebook/buck,facebook/buck,JoelMarcey/buck,JoelMarcey/buck,kageiit/buck,JoelMarcey/buck,nguyentruongtho/buck,JoelMarcey/buck,nguyentruongtho/buck,facebook/buck,facebook/buck,zpao/buck,nguyentruongtho/buck,Addepar/buck,Addepar/buck,Addepar/buck,Addepar/buck,nguyentruongtho/buck,JoelMarcey/buck,zpao/buck,nguyentruongtho/buck,Addepar/buck,zpao/buck,kageiit/buck,kageiit/buck,nguyentruongtho/buck,Addepar/buck,kageiit/buck,zpao/buck,JoelMarcey/buck,JoelMarcey/buck,kageiit/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,kageiit/buck,Addepar/buck,nguyentruongtho/buck,JoelMarcey/buck,facebook/buck,JoelMarcey/buck,zpao/buck,zpao/buck,kageiit/buck,facebook/buck,zpao/buck,Addepar/buck,Addepar/buck,Addepar/buck,Addepar/buck,facebook/buck,JoelMarcey/buck