Add check for empty String for the local directory in addition to null.
Add logging to detect why return null.
Merge pull request #439 from hsaputra/add_logging_localtempfolder

Add check for empty String for the local directory in addition to null and add logging.