use os.path.join instead of string concat to fix trailing slash issue