Add gitignore
Add script for linking files
Fix handling of directories