FIX: use absolute path for makedirs