diff --git a/.DS_Store b/.DS_Store
index cced00e0cc07be1c2adb00cede0f568aa8b797e6..a5b49043988e92c1de9584f4a8d74d770425af23 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/Makefile b/Makefile
index 875b12f72c9b9dfb551a9f9c9eff3bfcb161b3c0..7932fc761f2a3674f6b4f56c784db8d82874e544 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ SRC_FILES := src/Node.cpp src/Messages.cpp src/Member.cpp src/UdpSocket.cpp src/
 SRC_FILES2 := mappers/wc.cpp src/Utils.cpp
 .PHONY: clean
 
-all: clean app
+all: clean app map
 
 map:
 	$(CXX) -o $(APP2) $(SRC_FILES2) $(CFLAGS) $(LIBS)
diff --git a/Wc b/Wc
deleted file mode 100755
index 2a1b3b0f40063568eda8f0c472035d5ae52643a0..0000000000000000000000000000000000000000
Binary files a/Wc and /dev/null differ
diff --git a/src/main.cpp b/src/main.cpp
index adb19ed9b0a92273f34b0a5c3389a7bccae841a5..f0a205429b461a06ab4df0c1e296debe2405d4ff 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -166,11 +166,10 @@ int main(int argc, char *argv[])
 				cout << "USAGE: maple maple_exe num_maples sdfs_intermediate_dir sdfs_src_dir" << endl;
 				continue;
 			}
-			struct stat sb;
-			if (stat(cmdLineInput[1].c_str(), &sb) == 0 && sb.st_mode & S_IXUSR) { cout << endl; }
-			else {
+			string testCommand = "./" + cmdLineInput[1] + " > /dev/null 2>&1";
+			if (system(testCommand.c_str())) {
 				cout << "[MAPLE] " << cmdLineInput[1] << " does not exist locally" << endl;
-				continue;
+ 			   	continue;
 			}
 			if (!node->isBlackout){
 				string msg = cmdLineInput[1] + "," + cmdLineInput[2] + "," + cmdLineInput[3] + "," + cmdLineInput[4] + "\n";