Fixing an issue where logname might not return the right value, but
$LOGNAME  does