minor: remove filename splitting logic
bugfix: handle case where there is a leading path in input name