ghost: Appropriate changes in build script for stock builds

Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>