Bug found and fixed: file path instead of dir path.