PXE fixes, PAM cleanup