Clean up codes

 - Remove #if macros when possible
 - Remove shell scripts on Makefile