Updated server script to use appropriate directory