Added the creation of the vim swap folder
Added safeguards against execution of osx code on Linux
Moved core functions to a dotfile