Fixes trailing slashes bug on options.spritePath