Clean up & Add recentf with IDO
General cleanups and portability enhancements