Change file mode for custom files