small fix to not pass trailing slash when building path