Fixed a lot of build issues, added tests for vim and nano