[fix] detect certain bugs related to lack of unpacked dir
more error detection in scripts