Issue 333 ebi xml gen and sub

Probably safer to use `os.path.basename`. Applies to all.