fix issue #316

Added extra check to make sure that the file specified is the same as in the configuration.  If yes, then flip the encrypt flag.