fix failure for modules having non-platform file separator
support file separator replacement instead of hardcoded one