Fix auto-detection of dev archives

If the only file in the directory is not a valid archive, consider this to be a dev package.
Merge pull request #1689 from samoht/master

Fix auto-detection of dev archives