remove trailing slashes file paths variables