grunt: fix release build. restructure tasks to common