Fixed bugs related to being able to specify a filename without adding a patent type flag (-a or -g)