simplify access to OS related HS folders
refactored class to scala