fix to permit usage of '.' and '-' in target filenames
add --targets param