Add support for prefixed file modes