Fixes a bug with srcBasePath, which wasn't doing what it was intended to do

Typo with the indexOf comparison causing the srcBasePath to never do its job