Dynamically determin gem home directory.