python tool: remove trailing / on osx framework path