Fixed a bug with the edit command that was causing files to open incorrectly when using KDE. Updated the edit command to check if the program closes quickly and if so then get the user to specify when they are finished.
Fixed a bug in the edit command where it would freeze if a non-existent editor is configured.