Fixes path issue in isDesiredFile by replacing `/` with `path.sep`
Adds logic to check if `convertAMDToCommonJS` returns `null` before adding it to `memo`