Take into account --curdir for build.path

When build.path is a relative path, it was previously interpreted
relative to the arduino command. Now, it is interpreted relative to the
current directory when starting arduino, which makes more sense when
running something like:

  arduino --pref build.path=build_dir --verify Blink.ino