fixed bug in upx dir check