Set input_stream before is_dir in decrypt_file()