Make target_directory accept only abs-path values