refactored ubuntu to precise, fixed build_dir_server function