Use filename:join/2 in some cases
Make it compatible with {erl_opts, ...}