Fix extractResource method throwing FileNotFoundException