Minor tweaks to listing of frames.
Only do str_replace if $file is actually a string.
Merge pull request #22 from bobdenotter/master

Minor tweaks to the listing of frames.