modules/file_input: ported changes from astra3-dev