removed forward slash from directory variables