Resolve filename