fixed typo of method call
remove local directory if server isn't defined