Added security check to prevent both edit and exec of one file.

To prevent someone from executing arbitrary code, it is now no longer
allowed to edit and execute the same filename.