Fixed finding of the resources when package is available