Temp File for atomicWrite is now located at the same directory.

Changed the logic as proposed by @sethvargo in #58 . Temp File is now located in same directory, so cross device link errors should not happen any more.