build creates bin directory if not exist