Remove unnecessary code for HOME directory resolution