fixing resouces path and copying resource files to build folder