made all directory paths absolute, fixed usage of PREFIX before defining it