Tip from Federico Carrone to use filename:join.

Thanks!