making resource path work cross platform