Added previous directory tracking, switched to using Skim as application to open