Fix for change HOME directory to ~