epm: get package names from stdin if it is pipe
fix stderr issues