Adds directory input, fixes opening of LibreOffice when it's already running