Fix server's code to use path library

According to https://groups.google.com/a/dartlang.org/forum/#!topic/misc/KFI6XJijcic, use path library to make them work.