Make absolute_path method a class method.