change work dir when building gem, set absolute path to built gem