fixing relative paths for resources