Fixing $_SERVER['HOME'] issue with fallback