fixing path lookup for platform check