check for number of available sources when determining where to apply patches
add unit test for patch_step
remarks fixed
Merge pull request #1070 from boegel/patches_no_sources

check for number of available sources when determining where to apply patches