allowed filename: Use .endswith() instead of manual splitting
tests: Test osmo.admin._allowed_file()