refactor: replace ENV[HOME] with Dir.home