Resolve relative paths to upload shared resources correctly