Fix for base URLs ending with `/`
Added fix to ignore the current directory