Bugfix: Use File.separator.
Trim source rule before using it.