The endswith() check for the framework name fails when joining with the native path separator. Always use the posix separator as fix.