Use tmp instead of cur dir.