Adapted startup script to include style file and custom background if present.