Changes build logic to work off deploy prod option
Changes mochaTest logic back to prod flag
Finalizes solution to use prod and dev flags