[#1395] careful about current directory