Allow installing gradle into an empty target directory.
- list()'s the contents of the directory to check if empty
- if !empty then existing logic is applied (check if the directory has a prior gradle install)
- if empty then no checks are applied and the directory may be used for install